import { http } from '@/utils/axios';
import { Base } from '@/types/modules/base';

const Api = {
  list: '/v1/basic/area/query',
};

export function listAreaCode(pcode: string, name: string | null) {
  return http.request<Base.AreaCode[]>({
    method: 'post',
    url: Api.list,
    data: { pcode, name },
  });
}
